/*
 * @author Adley, Butcher, and Sanders
 * CSC 285 Final Project
 */

package tetris;

import java.awt.Graphics;
import javax.swing.JPanel;

/**
 * The panel for the score.
 */
public class ScorePanel extends JPanel{
    
    int score; // The variable that holds the score
    final int SCOREINCR = 1; // The score increment
    
    /**
     * Constructor simply contains the score
     */
    public ScorePanel(){
        this.score = 0;
    }
    
    @Override
    public void paintComponent(Graphics g){
        g.drawString("Score: "+ score,5,5);
    }
    
    /**
     * Increases the score by the score increment.
     */
    public void addPoint(){
        score = + SCOREINCR;
    }
    
    
}


